<?php


namespace app\common\model;


use think\Model;

class Work extends Model
{
    /**获取部门列表
     * @return mixed
     */
    public function get_department_list(){
        $list = get_department_list();
        if($list['errcode']==0) {
            $list['data'] = array2levels($list['department'], 'parentid', '1');
            $list['code']=0;
            return $list;
        }
    }

   public function send_templete_message($userlist,$title,$description,$url){
        return  send_message_templete($userlist,$title,$description,$url);
   }


}